package com.coocaa.ops.admin.v1.globalparams.converter;

import com.coocaa.ops.admin.v1.globalparams.model.GlobalParamsModel;
import com.coocaa.ops.common.core.base.util.PageQueryUtil;
import com.coocaa.ops.common.tool.base.InstanceUtil;

import java.util.Map;

/**
 * @author : hql
 * @date : 2020/7/16 16:18
 * @description
 */
public class GlobalParamsQueryConverter {

    public static Map<String, Object> getQueryParams(GlobalParamsModel model) {
        Map<String, Object> params = InstanceUtil.newHashMap();
        InstanceUtil.mappingObject2Map(model, params);
        //进行查询参数设置
        PageQueryUtil.handleFilterMap(model, params);
        return params;
    }
}
